package aishua.com.mytestapplist.bean;


import aishua.com.mytestapplist.annotation.OtherXmlInject;
import aishua.com.mytestapplist.annotation.OtherXmlRootTag;
import aishua.com.mytestapplist.engin.WebServiceConstant;

@OtherXmlRootTag(tag = "tsm", attrs = { "version", "01" })
public class BaseBeanReq{

	/** ��Կ�汾�� */
	private String keyVersion;

	/** ��Կ��ʶ */
	private String keyIndex;

	/** �ͻ������� */
	private String clientType;

	/** �ͻ��˰汾�� */
	private String clientVersion;

	/** ����mac */
	private String mac;
	
	private String isDemoType;
	
	@OtherXmlInject(tag="isDemo")
	public String getIsDemoType() {
		return isDemoType = "02";
	}


	public void setIsDemoType(String isDemoType) {
		this.isDemoType = isDemoType;
	}

	@OtherXmlInject(tag = "keyVersion")
	public String getKeyVersion() {
		return keyVersion;
	}

	public void setKeyVersion(String keyVersion) {
		this.keyVersion = keyVersion;
	}

	@OtherXmlInject(tag = "keyIndex")
	public String getKeyIndex() {
		return keyIndex;
	}

	public void setKeyIndex(String keyIndex) {
		this.keyIndex = keyIndex;
	}

	@OtherXmlInject(tag = "clientType")
	public String getClientType() {
		if (clientType == null) {
			clientType = WebServiceConstant.CLIENT_TYPE;
		}
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}

	/**
	 * @return the clientVersion
	 */
	@OtherXmlInject(tag = "clientVersion")
	public String getClientVersion() {
		if (clientVersion == null) {
			clientVersion = "02";
		}
		return clientVersion;
	}

	/**
	 * @param clientVersion
	 *            the clientVersion to set
	 */
	public void setClientVersion(String clientVersion) {
		this.clientVersion = clientVersion;
	}

	/**
	 * @return the imei
	 */
	// public String getImei() {
	// if (CTWalletApplication.mImei == null ||
	// CTWalletApplication.mImei.length() == 0) {
	// return "";
	// } else {
	// imei = CTWalletApplication.mImei;
	// }
	// return imei;
	// }

	/**
	 * @param imei
	 *            the imei to set
	 */
	// public void setImei(String imei) {
	// this.imei = imei;
	// }

	/**
	 * @return the phone
	 */
	// public String getPhone() {
	// if (CTWalletApplication.mPhoneType == null ||
	// CTWalletApplication.mPhoneType.length() == 0) {
	// return "";
	// } else {
	// phone = CTWalletApplication.mPhoneType;
	// }
	// return phone;
	// }

	// public void setPhone(String phone) {
	// this.phone = phone;
	// }
	@OtherXmlInject(tag = "mac")
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	@Override
	public String toString() {
		return "BaseBeanReq [keyVersion=" + keyVersion + ", keyIndex="
				+ keyIndex + ", clientType=" + clientType + ", clientVersion="
				+ clientVersion + ", mac=" + mac + "]";
	}

}
